﻿<controls:ChildWindow x:Class="AuthorizedNavigation.Client.Views.ChildWindowViews.LoginChildWindowView"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300"
                      HasCloseButton="False"
           Title="Connexion" >
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>
        
        <Grid VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <TextBlock Text="Utilisateur "
                       Margin="10"></TextBlock>
            
            <TextBlock Text="Mot de Passe "
                       Grid.Row="1" Margin="10"></TextBlock>
            
            <TextBox Text="{Binding UserName, Mode=TwoWay}"
                     Grid.Column="1"
                     Margin="10"
                     Height="30"></TextBox>
            <PasswordBox Password="{Binding Password, Mode=TwoWay}"
                     Grid.Row="1"
                     Grid.Column="1"
                     Margin="10"
                     Height="30"></PasswordBox>
        </Grid>
        <Button x:Name="OKButton" Content="Se Connecter" Click="OKButton_Click" Width="101" Height="30" HorizontalAlignment="Right" Margin="0,16,74,4" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>